/**
 * fileName: CS_YLES_Import_item_barcode_History
 * @NApiVersion 2.1
 * @NScriptType ClientScript
 */
define(["require", "exports", "../tools/YLES_CLIENT_TOOL"], function (require, exports, YLES_CLIENT_TOOL_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.refresh = exports.exportCSV = exports.pageInit = void 0;
    function pageInit(cxt) {
        //判断是否启动进度条
        if (jQuery('#import_csv_progress').length > 0) {
            try {
                (0, YLES_CLIENT_TOOL_1.initCSVProgress)();
            }
            catch (e) {
                console.log('启动进度条失败', e);
            }
        }
    }
    exports.pageInit = pageInit;
    //执行下载
    function exportCSV() {
        return (0, YLES_CLIENT_TOOL_1.exportMyCSV)();
    }
    exports.exportCSV = exportCSV;
    //刷新界面
    function refresh() {
        window.onbeforeunload = null;
        window.location.reload();
    }
    exports.refresh = refresh;
});
